<%--
  Created by IntelliJ IDEA.
  User: corcutt
  Date: Mar 15, 2009
  Time: 3:56:03 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>


<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title>Create Event</title></head>
<body>
<%@ include file="header.jspf" %>
<h3>Enter Your New Event Information:</h3>
<form:form modelAttribute="event">
    <table>
        <tr>
            <td>Event Name:</td>
            <td>
                <form:input path="name" autocomplete="false"/> 
                <form:errors path="name" cssStyle="color: red"/>
            </td>
        </tr>
        <tr>
            <td>Event Description:</td>
            <td>
                <form:input path="description" autocomplete="false"/>
                <form:errors path="description" cssStyle="color: red"/>
            </td>
        </tr>
        <tr>
            <td>Event Location:</td>
            <td>
                <form:input path="location" autocomplete="false"/>
            </td>
        </tr>
        <tr>
            <td>Event Start Date and Time (yyyy-mm-dd hh:mm:ss):</td>
            <td>
                <form:input path="startDateAndTime" autocomplete="false"/>
                <form:errors path="startDateAndTime" cssStyle="color: red"/>
            </td>
        </tr>
        <tr>
            <td>Event End Date and Time (yyyy-mm-dd hh:mm:ss):</td>
            <td>
                <form:input path="endDateAndTime" autocomplete="false"/>
                <form:errors path="endDateAndTime" cssStyle="color: red"/>
            </td>
        </tr>

        <tr>
            <td colspan="2" style="text-align:center"><input type="submit" value="Enter"></td>
        </tr>
    </table>
</form:form>

<%@ include file="footer.jspf" %>

</body>
</html>